home *** CD-ROM | disk | FTP | other *** search
/ Mac Easy 2010 May / Mac Life Ubuntu.iso / casper / filesystem.squashfs / var / lib / dpkg / info / xml-core.postinst < prev    next >
Encoding:
Text File  |  2008-11-06  |  1.6 KB  |  45 lines

  1. #!/bin/sh
  2. set -e
  3. # Automatically added by dh_installxmlcatalogs
  4. if [ "$1" = "configure" ]; then
  5.     update-xmlcatalog --add --type system --id "http://www.oasis-open.org/committees/entity/release/1.0/catalog.dtd" --package xml-core --local /usr/share/xml/schema/xml-core/catalog.xml
  6.     update-xmlcatalog --add --type public --id "-//OASIS//DTD XML Catalogs V1.0//EN" --package xml-core --local /usr/share/xml/schema/xml-core/catalog.xml
  7.  
  8.     update-xmlcatalog --add --type system --id "http://www.oasis-open.org/committees/entity/release/1.0/catalog.dtd" --package xml-core --root
  9.     update-xmlcatalog --add --type public --id "-//OASIS//DTD XML Catalogs V1.0//EN" --package xml-core --root
  10.  
  11. fi
  12. # End automatically added section
  13. # Automatically added by dh_installcatalogs
  14. if [ "$1" = "configure" ]; then
  15.     rm -f /etc/sgml/xml-core.cat
  16.     for ordcat in /usr/share/sgml/dtd/xml-core/catalog; do
  17.         update-catalog --quiet --add /etc/sgml/xml-core.cat ${ordcat}
  18.     done
  19.     update-catalog --quiet --add --super /etc/sgml/xml-core.cat
  20. fi
  21. # End automatically added section
  22. # Automatically added by dh_usrlocal
  23. if [ "$1" = configure ]; then
  24. (
  25.     while read line; do
  26.         set -- $line
  27.         dir="$1"; mode="$2"; user="$3"; group="$4"
  28.         if [ ! -e "$dir" ]; then
  29.             if mkdir "$dir" 2>/dev/null; then
  30.                 chown "$user":"$group" "$dir"
  31.                 chmod "$mode" "$dir"
  32.             fi
  33.         fi
  34.     done
  35. ) << DATA
  36. /usr/local/share 2775 root staff
  37. /usr/local/share/xml 2775 root staff
  38. /usr/local/share/xml/schema 2775 root staff
  39. /usr/local/share/xml/misc 2775 root staff
  40. /usr/local/share/xml/entities 2775 root staff
  41. /usr/local/share/xml/declaration 2775 root staff
  42. DATA
  43. fi
  44. # End automatically added section
  45.